package com.vf.admin.client.service.impl;

import com.vf.admin.client.dao.AppRoomMeiliDao;
import com.vf.admin.client.service.AppRoomMeiliService;
import com.vf.admin.miaodong.entity.AppRoomMeili;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AppRoomMeiliServiceImpl implements AppRoomMeiliService {
    @Autowired
    private AppRoomMeiliDao appRoomMeiliDao;

    @Override
    public AppRoomMeili getMeili(Integer userid, Integer roomid) {
        return appRoomMeiliDao.getMeili(userid,roomid);
    }

    @Override
    public AppRoomMeili getRoomMeili(Integer roomid,Integer userId) {
        return appRoomMeiliDao.getRoomMeili(roomid,userId);
    }

    @Override
    public void save(AppRoomMeili haoYou) {
        appRoomMeiliDao.save(haoYou);
    }

    @Override
    public void delMeili(Integer roomid) {
        appRoomMeiliDao.delMeili(roomid);
    }

    @Override
    public void addMeili(Integer userid,Integer roomid,Integer money) {
        appRoomMeiliDao.addMeili(userid,roomid,money);
    }
}
